/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package battleship.ship;

/**
 *
 * @author ali
 */
public enum DirectionEnum {

    HORIZONTAL(0),
    VERTICAL(1)
    ;
    int dir;

    private DirectionEnum(int dir) {
        this.dir = dir;
    }

    public static DirectionEnum toDirectionEnum(int i){
        DirectionEnum dir = null;
        if(i == 0){
            dir = HORIZONTAL;
        }else{
            dir = VERTICAL;
        }
        return dir;
    }
}
